/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.lczyfz.wisdom.modules.platform.entity;

import com.lczyfz.wisdom.common.persistence.DataEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

/**
 * 用户反馈Entity
 * @author css
 * @version 2019-09-26
 */
@ApiModel(value="用户反馈")
public class Opinion extends DataEntity<Opinion> {
	
	private static final long serialVersionUID = 1L;
	@ApiModelProperty(value = "用户id",name = "userId",required = true,example = "12322434345")
	private String userId;		// 用户id
	@ApiModelProperty(value = "用户反馈内容",name = "opinion",required = true,example = "不好用")
	private String opinion;		// 用户反馈

	public Opinion() {
		super();
	}

	public Opinion(String id){
		super(id);
	}

	@Length(min=0, max=64, message="用户id长度必须介于 0 和 64 之间")
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	@Length(min=0, max=2000, message="用户反馈长度必须介于 0 和 2000 之间")
	public String getOpinion() {
		return opinion;
	}

	public void setOpinion(String opinion) {
		this.opinion = opinion;
	}

}